import { HomeComponent } from './../home/home.component';
import { NavController } from 'ionic-angular';
import { DataSyncService } from './../../component/dataSync/dataSync.component';
import { StoreService } from './../../service/store.service';
import { ModifierService } from './../../service/modifier.service';
import { CacheManager } from './../../common/cacheManager';
import { InventoryService } from './../../service/inventory.service';
import { NavigateService } from './../../service/navigate.service';
import { Component, OnInit } from '@angular/core';
import { SyncDataService } from "../../service/index";
import { SyncDataUrl } from "../../model/clerkDataContext";

@Component({
    //moduleId: module.id,
    selector: 'sync-app',
    templateUrl: './sync.component.html',
    styleUrls: ['./sync.component.scss']
})

export class SyncComponent implements OnInit {
    constructor(
        private router: NavigateService,
        public navCtrl: NavController
    ) { }

    async ngOnInit() {
        await DataSyncService.Current.show();
    }

    syncSuccess($event) {
        // this.router.navigate(["home"]);
        this.navCtrl.setRoot(HomeComponent);
    }
}